package com.store.controller;

import com.store.pojo.Admin;
import com.store.service.AdminService;
import com.store.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpSession;
import java.util.List;

@Controller
@RequestMapping("/Admin")
public class AdminController {


    @Autowired
    private AdminService adminService;


    /*
     * 登录验证*/
    @RequestMapping("/login")
    public ModelAndView login(Admin admin , ModelAndView modelAndView, HttpSession session){
        return adminService.loginValidate(admin,modelAndView,session);
    }

}